# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=lite-editor
pkgver=1.06
pkgrel=0
pkgdesc="A lightweight text editor written in Lua"
url="https://github.com/rxi/lite"
arch="all"
license="MIT"
depends="lua"
makedepends="bash sdl2-dev"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/rxi/lite/archive/v$pkgver/v$pkgver.tar.gz
	dont-assume-local-project.patch"
builddir="$srcdir/lite-$pkgver"

build() {
	./build.sh
}

package() {
	mkdir -p "$pkgdir"/usr/bin/ "$pkgdir"/usr/share/lite-editor
	cp lite "$pkgdir"/usr/bin/lite
	cp -r data "$pkgdir"/usr/share/lite-editor
}

sha512sums="e0c834f9e0004d26549f91559eae9e9d4bff5b018e39d4486d82003a7247034168331fa179ad788c04c59b9510b58f051fa65eab1c54fc784d6e434bae548cf8  lite-editor-1.06.tar.gz
a8de78079bd4333827ffafed60ee6aab34b4b04dcc3fb6cef1347a4541cc892848959f8ddbbe8e6b80ecc8042c37dc1f7460083cb0c108dd733aa045937393fc  dont-assume-local-project.patch"
